﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LibNiconico.NiconicoApi.Internal;
using System.Xml.Linq;

namespace LibNiconico.NiconicoApi.Lives.Comments
{
    /// <summary>
    /// ニコニコ生放送スレッドコメント
    /// </summary>
    public sealed class NicoLiveThreadComment:NicoXmlSocketThreadComment
    {
        private NicoLiveThreadComment(){}

        /// <summary>
        /// コメント解析
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        public static NicoLiveThreadComment Parse(XElement message)
        {
            NicoLiveThreadComment threadComment = new NicoLiveThreadComment();
            NicoXmlSocketThreadComment.Parse(threadComment, message);
            return threadComment;

        }
    }
}
